package app

import "github.com/gin-gonic/gin"

var engine *gin.Engine

func init() {
	engine = gin.Default()
}

func GetEngine() *gin.Engine {
	return engine
}

func SetRouter() {
	g := engine.Group("/user")
	g.Use(errorHandler)
	g.GET(":id", getUser)
}
